package com.rds.workflow.service.impl;


import com.rds.workflow.domain.RdaNode2TaskRel;
import com.rds.workflow.mapper.RdaNode2TaskRelMapper;
import com.rds.workflow.service.IRdaNode2TaskRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RdaNode2TaskRelServiceImp implements IRdaNode2TaskRelService {
    @Autowired
    private RdaNode2TaskRelMapper rdaNode2TaskRelMapper;

    @Override
    public int insertRdaNode2TaskRel(RdaNode2TaskRel rdaNode2TaskRel) {
        return rdaNode2TaskRelMapper.insertRdaNode2TaskRel(rdaNode2TaskRel);
    }

    @Override
    public List<RdaNode2TaskRel> selectRdaNode2TaskRelbyTaskid(Long taskid) {
        return rdaNode2TaskRelMapper.selectRdaNode2TaskRelbyTaskid(taskid);
    }

    @Override
    public List<RdaNode2TaskRel> selectRdaNode2TaskRelbyNodeid(Long nodeid) {
        return rdaNode2TaskRelMapper.selectRdaNode2TaskRelbyNodeid(nodeid);
    }

    @Override
    public int deleteRdaNode2TaskRelByWorkflowid(Long workflowid) {
        return rdaNode2TaskRelMapper.deleteRdaNode2TaskRelByWorkflowid(workflowid);
    }
}
